import { http } from "@/utils/http";

export type commonResult<T> = {
    code: number;
    msg: string;
    result: T;
};

/** 2.11.1 查询单位树 */
export const getUnitTree = (params?: object) => {
    return http.request<commonResult<any>>("get", '/business/system/v2/unity/tree', {
        params
    });
};

/** 2.11.2 查询单位详情 */
export const getUnitInfo = (params?: object) => {
    return http.request<commonResult<any>>("get", '/business/system/v2/unity/unity', {
        params
    });
};